home *** CD-ROM | disk | FTP | other *** search
/ Clickx 115 / Clickx 115.iso / software / tools / windows / tails-i386-0.16.iso / live / filesystem.squashfs / usr / include / scribus-ng / smlinestylewidget.h < prev    next >
Encoding:
C/C++ Source or Header  |  2007-10-10  |  1.1 KB  |  51 lines

  1. /*
  2. For general Scribus (>=1.3.2) copyright and licensing information please refer
  3. to the COPYING file provided with the program. Following this notice may exist
  4. a copyright and/or license notice that predates the release of Scribus 1.3.2
  5. for which a new license (GPL+exception) is in place.
  6. */
  7.  
  8. #ifndef SMLINESTYLEWIDGET_H
  9. #define SMLINESTYLEWIDGET_H
  10.  
  11. class QEvent;
  12.  
  13. #include "scribusstructs.h"
  14. #include "styleitem.h"
  15. #include "ui_smlinestylewidget.h"
  16.  
  17. class LineCombo;
  18. class ColorCombo;
  19. class ScrSpinBox;
  20.  
  21. class SMLineStyleWidget : public QWidget, Ui::SMLineStyleWidget
  22. {
  23.     Q_OBJECT
  24. public:
  25.     SMLineStyleWidget();
  26.     ~SMLineStyleWidget();
  27.     
  28.     virtual void changeEvent(QEvent *e);
  29.     
  30.     void showStyle(const multiLine &lineStyle, ColorList &colorList, int subLine = 0);
  31.     void languageChange();
  32.  
  33. private:
  34.     LineCombo *dashCombo;
  35.     ScrSpinBox  *lineWidth;
  36.     ColorCombo *colorCombo;
  37.     multiLine  currentStyle;
  38.     ColorList  colors;
  39.  
  40.     void updateLineList();
  41.     QColor getColor(const QString &name, int shade);
  42.  
  43.     friend class SMLineStyle;
  44.  
  45. protected slots:
  46.     void slotEditNewLine(int i);
  47.  
  48. };
  49.  
  50. #endif
  51.